import request from '@/utils/request'
export interface ICountAndLimitNum {
  count: number
  limitNum: number
}
export const getProListReq = (data: ICountAndLimitNum) => {
  return request({
    url: '/pro/list',
    method: 'GET',
    data
  })
}
export const getCategoryListReq = () => {
  return request({
    url: '/pro/getCategory',
    method: 'GET'
  })
}

export const getSearchListReq = (data: { category: string, search: string }) => {
  return request({
    url: '/pro/searchPro',
    method: 'POST',
    data
  })
}

export const getRecommendOrSeckillListReq = (data: { type: string, flag: number}) => {
  return request({
    url: '/pro/showdata',
    method: 'POST',
    data
  })
}
